package com.wq.payunion.oauth2.useroauth2.oauth2;

import com.wq.payunion.oauth2.useroauth2.model.AbstractOAuthBean;
import com.wq.payunion.oauth2.useroauth2.model.AccessTokenParam;
import com.wq.payunion.oauth2.useroauth2.model.OAuthInfoParam;
import com.wq.payunion.oauth2.useroauth2.model.OAuthResult;

import java.util.Map;

/**
 * @Author: wangqiang20995
 * @Date:2018 年 9 月 15 日 0015
 * @Description:
 * @Resource:
 */
public interface ThirdSystemOAuth {

    //生成授权的url地址
    OAuthResult generatorRedirectUrl(AbstractOAuthBean param, String extract);

    //获取accesstoken
    Map<String, Object> accessToken(AccessTokenParam accessTokenParam, String params);

    //获取对应的授权信息
    Map<String, Object> oauthWithAccessToken(OAuthInfoParam param);

}
